package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import com.ticket.sass.common.entity.tenant.enums.OrderTicketLaterPayStatus;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author 朱其鹏
 * @date 2024/5/23 10:20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order_ticket_later_pays")
public class OrderTicketLaterPayEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private OrderTicketLaterPayStatus status;

    private Long orderId;

    private Long userId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableLogic(value = "null", delval = "now()")
    @TableField(select = false)
    private LocalDateTime deletedAt;
}